import { success } from '@/utils/apiResult'

export const getChangeLogList = () => {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve(success(changeLogList))
    }, 2000)
  })
}

const changeLogList = [
  {
    date: '2022-01-27',
    version: 'v1.3.0',
    featList: ['增加代码格式配置eslint+prettier'],
    bugFixList: ['随便逛逛跳转页面后，菜单选中状态未更新'],
    depUpgList: []
  },
  {
    date: '2022-01-26',
    version: 'v1.2.0',
    featList: [
      '统一接口返回值结构 {code:Number, data:Object, msg:String}',
      '增加随便逛逛、生成模拟数据功能',
      '修改日志列表样式'
    ],
    bugFixList: [],
    depUpgList: ['vue 升级至 3.2.29', 'element-plus 升级至 1.3.0-beta.9']
  },
  {
    date: '2022-01-25',
    version: 'v1.1.0',
    featList: ['增加代码对比页面'],
    bugFixList: [],
    depUpgList: []
  },
  {
    date: '2022-01-24',
    version: 'v1.0.0',
    featList: ['初始版本，增加用户管理、关于页面'],
    bugFixList: [],
    depUpgList: []
  }
]
